package com.lanhai.zhonglai.interfaces;

import java.util.List;

import com.lanhai.zhonglai.beans.StationDataBean;
import com.lanhai.zhonglai.enums.TransDirectionEnum; 

/**
 * 对接设备解析协议
 * @author zhengwei
 * @param <TransDirectionEnum>
 *
 */
public interface IStationProtocol {
	
	//传输指令
	byte[] agvArrived(byte line, TransDirectionEnum type); 
	
	//离开和异常指令
	byte[] agvLeave(byte line, TransDirectionEnum type );
	 
	
	//申请收货
	byte[] applyRecieve( byte line,TransDirectionEnum type);
	
	//申请离开指令
	byte[] applyLeave( byte line,TransDirectionEnum type);
	
	byte[] transError( byte line,TransDirectionEnum type);
	
	//解析数据
	List<StationDataBean> analyseData(String ip, byte[] buf);
}
